import { createApp } from "vue";
import installer from "./as-needed";
import scui from "./scui";
import i18n from "./locales";
import router from "./router";
import store from "./store";
import App from "./App.vue";
import "./style/style.scss";
import { ElMessage, ElMessageBox } from "element-plus";

const app = createApp(App);
app.config.globalProperties.$confirm = ElMessageBox;
app.config.globalProperties.$message = ElMessage;
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.use(store);
app.use(router);
app.use(installer);
app.use(i18n);
app.use(scui);
import Treeselect from "vue3-treeselect";
import "vue3-treeselect/dist/vue3-treeselect.css";

app.component("Treeselect", Treeselect);
//挂载app
app.mount("#app");
